{include file=member.header.html}
<script>
    $(function () {
        $('#epay-withdraw').submit(function () {
            if ($(this).find('input[name="tx_money"]').val() == '' || $(this).find('input[name="tx_money"]').val() <= 0) {
                alert('{$lang.cuowu_tixianjinebunengweikong}');
                return false;
            }
        });
    })
</script>
<div class="content">
    {include file=member.menu.html}
    <div id="right">
        {include file=member.curlocal.html}
        {include file=member.submenu.html}
        <div class="wrap">
            <div class="public table epay">
                <!--{if $member.money gt 0}-->
                <!--{if !$bank_list}-->
                <div class="notice-word">{$lang.setting_withdraw_bank_card}<a  href="{url app=account_log&act=bank_add}">{$lang.setting_rightnow}</a></div>
                <!--{else}-->
                <div class="notice-word">{$lang.confirm_your_card_is_correct_notice}</div>
                <form method="post" id="epay-withdraw">
				<input style="display:none" type="password"  id="post_zf_pass" />
                    <div class="title clearfix">
                        <h2 class="float-left">{$lang.extract_balance_to_card}</h2>
                        <p class="float-left">{$lang.remain}<strong>{$member.money}</strong> {$lang.yuan}</p>
                        <div class="float-right link">
                            <a class="add-bank"  href="{url app=account_log&act=bank_add}">{$lang.bank_add}</a>
                            <a  href="{url app=account_log&act=logall&type=70}">{$lang.tixianjilu}</a>
                        </div>
                    </div>
                    <div class="form">
                        <dl class="clearfix">
                            <dt>{$lang.choose_card}</dt>
                            <dd>
                                <!--{foreach from=$bank_list item=bank name=fe_bank}-->
                                <label for="bank_id_{$bank.bank_id}">
                                    <div class="bank-each clearfix {if $smarty.foreach.fe_bank.first} selected {/if}">
                                        <div class="radio float-left"><input name="bank_id" id="bank_id_{$bank.bank_id}" type="radio" value="{$bank.bank_id}" {if $smarty.foreach.fe_bank.first} checked="checked" {/if}/></div>
                                        <div class="bank-name float-left">{$bank.bank_name}-{$bank.bank_type}</div>
                                        <div class="bank-num float-left">{$bank.bank_num}</div>
                                        <div class="action float-right">
                                            <a  href="{url app=account_log&act=bank_edit&bank_id=$bank.bank_id}">{$lang.edit}</a>
                                        </div>
                                    </div>
                                </label>
                                <!--{/foreach}-->
                            </dd>
                        </dl>
                        <dl class="clearfix">
                            <dt>{$lang.cash_withdrawal_amount}</dt>
                            <dd><input type="text" name="tx_money" class="text" value="" /> {$lang.yuan}</dd>
                        </dl>
                        <dl class="clearfix">
                            <dt>{$lang.payment_zhifu}</dt>
                            <dd><input type="password" name="post_zf_pass" class="text" value="" /></dd>
                        </dl>
                        <dl class="clearfix">
                            <dt>&nbsp;</dt>
                            <dd class="submit">
                                <span class="epay_btn">
                                    <input type="submit" value="{$lang.submit}" />
                                </span>
                            </dd>
                        </dl>
                    </div>
                </form>
                <!--{/if}-->
                <!--{else}-->
                <div class="notice-word">{$lang.account_balance}<span class="f60">0</span>{$lang.disable_apply_withdraw}</div>
                <!--{/if}-->
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
</div>
{include file=footer.html}